package com.nuoniu.sibanyun.mapper.crm.call;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nuoniu.sibanyun.annotation.DataAuth;
import com.nuoniu.sibanyun.entity.crm.call.CrmCallTaskRecord;
import com.nuoniu.sibanyun.entity.crm.call.dto.CrmCallTaskRecordSearchDto;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 客户管理-外呼管理-外呼记录 Mapper 接口
 * </p>
 *
 * @author 白强
 * @since 2022-02-28
 */
public interface CrmCallTaskRecordMapper extends BaseMapper<CrmCallTaskRecord> {

    @DataAuth(tableAlias = "t",personalField = "create_user_id",companyField = "company_id",officeField = "office_id")
    Page<CrmCallTaskRecord> pageList(Page page,Integer companyId,@Param("dto") CrmCallTaskRecordSearchDto recordSearchDto);

    Long getByCallId(String callId);



}
